<template>
    <transition>
      <slot></slot>
    </transition>
</template>

<script>
  // 公共动画组件
  export default {
    name: 'Fade'
  }
</script>

<style scoped lang="stylus">

  .v-enter, .v-leave-to
    opacity: 0
  .v-enter-active, .v-leave-active
    transition: opacity .5s

</style>
